package cn.itsource.pethome.detp.service.impl;

import cn.itsource.pethome.detp.domian.Employee;
import cn.itsource.pethome.detp.mapper.IEmployeeMapper;
import cn.itsource.pethome.detp.query.EmployeeQuery;
import cn.itsource.pethome.detp.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl implements IEmployeeService {
    @Autowired
    private IEmployeeMapper employeeMapper;
    @Override
    public List<Employee> findAll(EmployeeQuery query) {
        return employeeMapper.findAll(query);
    }
}
